Python 3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> movies=["The Holy Grail",1975,"Terry Jones & Terry Gilliam",91,["Graham Chapman",["Michael Palin","John Cleese","Terry Gilliam","Eric Idle ","Terry Jones"]]]
>>> print(movies)
['The Holy Grail', 1975, 'Terry Jones & Terry Gilliam', 91, ['Graham Chapman', ['Michael Palin', 'John Cleese', 'Terry Gilliam', 'Eric Idle ', 'Terry Jones']]]
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
					else:
						
SyntaxError: invalid syntax
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
					else:
						
SyntaxError: invalid syntax
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
					else:print(nested_item)
					
SyntaxError: invalid syntax
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
					else:print(nested_item)
					
SyntaxError: invalid syntax
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
					else:
						
SyntaxError: invalid syntax
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)

					
Michael Palin
John Cleese
Terry Gilliam
Eric Idle 
Terry Jones
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
					else:
						
SyntaxError: invalid syntax
>>> for each_item in movies:
	if isinstance(each_item,list):
		for nested_item in each_item:
			if isinstance(nested_item,list):
				for deeper_item in nested_item:
					print(deeper_item)
			else:
				print(nested_item)
	else:
		print(each_item)

		
The Holy Grail
1975
Terry Jones & Terry Gilliam
91
Graham Chapman
Michael Palin
John Cleese
Terry Gilliam
Eric Idle 
Terry Jones
>>> 